<!--贴点地图层，相关属性配置参考官网-->
<template>
  <el-amap-loca-scatter
    v-for="(scatterComponentItem, index) in scatterLayerComponents"
    :initEvents="false"
    :key="scatterComponentItem.componentId"
    :visible="scatterComponentItem.visible"
    :opacity="scatterComponentItem.opacity"
    :source-data="scatterComponentItem.sourceData"
    :layer-style="scatterComponentItem.layerStyle"
    :zIndex="scatterComponentItem.zIndex"
    :visible-duration="500"
    :ref="`scatterLayerComponents${index}`"
  />
</template>

<script>
export default {
  props: ['scatterLayerComponents'],
  methods: {
    getscatterLayerComponentsRef(index) {
      return this.$refs[`scatterLayerComponents${index}`];
    },
  },
};
</script>
<style lang="less" scoped></style>
